#{extends 'main.html' /} #{set title:'Home' /}
<div id=main>

<h1>${draft.subject}</h1>
<p>
<label>Subject: </label>${draft.subject}
</p>
<p>
<label>Body: </label>${draft.body}
</p>

<form name="delete" action="@{DraftController.deleteDraft(draft.id)}"
method="Post">
<input type="submit" name="delete" value="Delete" />
</form>

<form id="publishAstopic" action="@{DraftController.allEntities()}"
method="POST">
<input type="submit" name="save" value="Publish as Topic" />
</form>

<label>Publish Idea To: </label> <a
href="@{Organizations.allOrgOfUserTopic(draft.id)}">Organization</a> <br>
<a href="@{DraftController.allEntOfUserIdea(draft.id)}">Entity</a> <br>
<a href="@{DraftController.allTopics(draft.id)}">Topic</a>

<form id="edit" action="@{DraftController.editDraft(draft.id)}"
method="POST">
<input type="submit" name="save" value="Edit" />
</form>
</div>
 